﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

public partial class list : System.Web.UI.Page
{
    string id = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack) {
            id = Request.QueryString["func"].ToString();
            nhapDanhSach();
        }
    }
    protected void nhapDanhSach()
    {
        clsTableAction clsTable = new clsTableAction("ThongBao");
        SqlDataReader sqlDare = clsTable.exportDataReader("*","MaTB='" + id + "'");
        if (sqlDare.Read())
        {
            lblTitle.Text = sqlDare[1].ToString();
            lblContent.Text = sqlDare[2].ToString().Replace("`","'");
        }
        clsTable.free();
    }    
   
}
